/*
 * Ref:
 * 1. http://blog.knoldus.com/2010/10/20/managing-wicket-serialization-problem-on-google-app-engine/
 * 2. https://cwiki.apache.org/WICKET/migration-to-wicket-15.html
 * 3. http://apache-wicket.1842946.n4.nabble.com/JavaSerializer-in-1-5-4-causes-exceptions-with-GAE-td4404222.html
 * 
 */
package org.gou.wicketstudy.gae;

import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;

import org.apache.wicket.serialize.ISerializer;
 
 
public class GAEObjectStreamFactory implements ISerializer {
 
    public ObjectInputStream newObjectInputStream(InputStream in) throws IOException {
        return new ObjectInputStream(in);
    }
 
    public ObjectOutputStream newObjectOutputStream(OutputStream out) throws IOException {
        return new ObjectOutputStream(out);
    }

	@Override
	public byte[] serialize(Object object) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object deserialize(byte[] data) {
		// TODO Auto-generated method stub
		return null;
	}
}